include ../Make.defines

PROGS = tcpcli01 tcpcli04 tcpcli09 tcpserv01 tcpserv02 tcpserv04 tcpserv08 tcpserv09 \
		tcpservselect01 tcpservpoll01

all: ${PROGS}

tcpcli01: tcpcli01.o
	${CC} ${CFLAGS} -o $@ tcpcli01.o ${LIBS}

tcpcli04: tcpcli04.o
	${CC} ${CFLAGS} -o $@ tcpcli04.o ${LIBS}

tcpcli09: tcpcli09.o str_cli09.o
	${CC} ${CFLAGS} -o $@ tcpcli09.o str_cli09.o ${LIBS}

tcpserv01: tcpserv01.o
	${CC} ${CFLAGS} -o $@ tcpserv01.o ${LIBS}

tcpserv02: tcpserv02.o sigchldwait.o
	${CC} ${CFLAGS} -o $@ tcpserv02.o sigchldwait.o ${LIBS}

tcpserv04: tcpserv04.o sigchldwaitpid.o
	${CC} ${CFLAGS} -o $@ tcpserv04.o sigchldwaitpid.o ${LIBS}

tcpserv08: tcpserv08.o sigchldwaitpid.o str_echo08.o
	${CC} ${CFLAGS} -o $@ tcpserv08.o sigchldwaitpid.o str_echo08.o ${LIBS}

tcpserv09: tcpserv09.o sigchldwaitpid.o str_echo09.o
	${CC} ${CFLAGS} -o $@ tcpserv09.o sigchldwaitpid.o str_echo09.o ${LIBS}

tcpservselect01: tcpservselect01.o
	${CC} ${CFLAGS} -o $@ tcpservselect01.o ${LIBS}

tcpservpoll01: tcpservpoll01.o
	${CC} ${CFLAGS} -o $@ tcpservpoll01.o ${LIBS}

clean:
	rm -f ${PROGS} ${CLEANFILES}

